package com.bawei.mvp.http.call;


import com.bawei.mvp.http.bean.ErrorBean;

public class Error {


    public static final int NOT_NETWORK = 2000;


    public static ErrorBean getErrorBean(int code) {
        switch (code) {
            default:
            case NOT_NETWORK:
                return new ErrorBean(Error.NOT_NETWORK, "网络异常");
        }
    }
}
